package FPGrowth;


import java.awt.Dimension;
import java.io.File;
import java.util.*;

import Drawable.Graph;



public class FPGrowth {

	protected FPTree fptree;
	public FPGrowth(File link, int minSup, int minThresh) {
		fptree = new FPTree(minSup, minThresh);
		fptree.generate(link);
		fptree.miningFrequentPattern();
		fptree.generate_SetAssociationRules();
	}
	
	public void miningAssociationRule() {
		
	}
	public void showTree(){
		Graph graph = new Graph(fptree.rootNode);
		graph.setMinimumSize(new Dimension(400,400));
		graph.setVisible(true);
	}
	
	
}
